Health Cloud Benefits Verification LWC - Source
Setup guide
Dependencies
- Deploy Mule API Benefits Verification Process API - Implementation Template and all of the system APIs that support it.
Installing Lightning Web Component to Salesforce
- Use the following URL to install this package in your HealthCloud enabled org. Login with the username and password for the org that you wish to install the package into. https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5f000000FcTxAAK
- Approve the Install for "All Users".
- Step through the install wizard until the installation is complete.
Note: You may alternatively install the lightning web component from source code by downloading the asset (.zip file) and then follow the instructions in the provided README.md file.
Salesforce Configuration
Remote Site Access
Before any Apex callout can call an external api, that api must be registered in the Remote Site Settings Page, or the call fails. To access the page, from Setup, enter
Remote Site Settings
in theQuick Find box
, then select Remote Site Settings. Find the entry called 'cerner_benefit_verification_prc_api' and edit it. Set the URL to Benefits Verification Process API.LWC Configuration
The URL of the Benefits Verification Process API needs to be configured. To access the page, from Setup, enter
Custom Metadata Types
in theQuick Find box
. In the list find the one labeledBenefit Verification LWC
and click theManage Records
link. For thebenefitVerification
record click theEdit
link. All of the defaults should be set accordingly except forbaseUrl
, you need to set that to the base URL for your Benefits Verification Process API. Once you've set it click theSave
button to save.Add the component to a Salesforce page
- Navigate to a page within Salesforce, where BenefitVerification needs to be setup. Example - Getting Started
- Use the gear icon at the top right to select edit page
- On the edit page menu, on the left side menu scroll to the bottom to find the custom component "benefitVerification" and position it in the desired location on the page
- Save the page and exit Editor
- Test the installed LWC as shown in the following screenshot:
Editing the source code
Modification of the source code requires that the Salesforce CLI toolset is installed on the local machine that's performing the install.
These steps assumes that you've already performed the installation into the org of your choosing.
1) First setup a new project directory to work in. See Create a Salesforce DX Project for instructions.
2) Next authorize the org with the installed app. See the Salesforce Authorize an Org Using Web Server Flow for
the cli instructions to setup your org.
3) Next issue the following command which will pull the existing source code from the org and put it in the current directory under benefits-verification-app/main/default
.
sfdx force:source:retrieve -n benefits-verification-app